package com.topscomm.mis.cbb.file.compare.cj.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

@Data
@ApiModel(value = "对比项")
public class CompareItemsDto extends CompareDto{

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    Boolean compareContent  = true;

    /**
     * 段落样式
     */
    @ApiModelProperty(value = "段落样式")
    CompareParagraphStyleDto compareParagraphStyleDto;

    /**
     * 文字样式
     */
    @ApiModelProperty(value = "文字样式")
    CompareTextStyleDto compareTextStyleDto;

    /**
     * 表格样式
     */
    @ApiModelProperty(value = "表格样式")
    CompareTableStyleDto compareTableStyleDto;

    /**
     * description 获取层级数据
     * @author wxm
     * @date 2023-06-13 11:10:57
     * @return com.alibaba.fastjson.JSONObject
     * @modify
     */
    public JSONObject getHierarchy(){
        JSONObject hierarchy = new JSONObject();
        hierarchy.put("code","compareItemsDto");
        hierarchy.put("name","对比项");
        hierarchy.put("children",getApiModelProperty(this.getClass()));
        return hierarchy;
    }
}